package com.lzh.shijicloudstack.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.shijicloudstack.model.dto.cookbookCategory.AddCookbookCategoryDetailDto;
import com.lzh.shijicloudstack.model.dto.cookbookCategory.EditCookbookCategoryDetailDto;
import com.lzh.shijicloudstack.model.entity.CookbookCategory;
import com.lzh.shijicloudstack.model.vo.cookbookCategory.CookbookCategoryDetailVO;

import java.util.List;


/**
 * 菜谱分类服务接口
 *
 * @author luzhiheng
 * @since 2024-01-12
 */
public interface CookbookCategoryService extends IService<CookbookCategory> {

    /**
     * 查询菜谱分类列表
     *
     * @return List<CookbookCategoryDetailVO>
     */
    List<CookbookCategoryDetailVO> findList();

    /**
     * 编辑菜谱分类
     *
     * @param dto dto
     * @return Boolean
     */
    Boolean edit(EditCookbookCategoryDetailDto dto);

    /**
     * 添加菜谱分类
     *
     * @param dto dto
     * @return Boolean
     */
    Boolean add(AddCookbookCategoryDetailDto dto);

}

